Color Button

vector color =  <0.82745, 0.10980, 1.00000>;

integer channel = 72;

default
{
    touch_start(integer total_number)
    {
        if(color == ZERO_VECTOR)
        {
            llSay(channel,"/ls color " + (string)llGetColor(ALL_SIDES));
        }
        else
        {
            llSay(channel,"/ls color " + (string)color);
        }
    }
    link_message(integer sender,integer num,string msg,key id)
    {
        if(msg == "HIDE")
        {
            llSetAlpha(0,ALL_SIDES);
            state hidden;
        }
    }
}

state hidden
{
    link_message(integer sender,integer num,string msg,key id)
    {
        if(msg == "SHOW")
        {
            llSetAlpha(1,ALL_SIDES);
            state default;
        }
    }
}